package com.ruoyi.web.controller.common;

import cn.zwmas.web.feign.AccountFeign;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
public class Test1Controller extends BaseController {

    @Autowired
    private AccountFeign accountFeign;

    @GetMapping("/test")
    public AjaxResult getCode(HttpServletResponse response) throws IOException{
        AjaxResult ajax = AjaxResult.success();
        accountFeign.checkAccessToken("1111111111111");
        return ajax;
    }

}
